package com.suning.sawp.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 注册绑定错误类
 * @author 14062606
 *
 */
public class RegAndBindErrCodeConstants {
	
    private RegAndBindErrCodeConstants() {
    }
    
	public static final Map<String, String> COMMON_ERR_MAP = new HashMap<String, String>();
    
	public static final String COMMON_ERR_E999 = "E999";
    
	public static final String COMMON_ERR_E888 = "E888";
    
    static {
    	COMMON_ERR_MAP.put(COMMON_ERR_E999, "系统异常");
    	COMMON_ERR_MAP.put(COMMON_ERR_E888, "非法参数");
    }
     
    /******   查询会员状态返回错误码    ******/
    public static final Map<String, String> MEMBER_ERR_MAP = new HashMap<String, String>();
    
    // 查询会员信息出错
    public static final String MEMBER_ERR_E001 = "001";
    
    static {
    	MEMBER_ERR_MAP.put(MEMBER_ERR_E001, "查询会员信息出错");
    }
    
    /******   注册返回错误码    ******/
    public static final Map<String, String> REG_ERR_MAP = new HashMap<String, String>();
    
    // 验证短信验证码或者邮件验证码时达到最大容错次数限制
    public static final String REG_ERR_E001 = "001";
    
    // 短信验证码校验失败
    public static final String REG_ERR_E002 = "002";
    
    public static final String REG_ERR_E003 = "003";
   
    static {
    	REG_ERR_MAP.put(REG_ERR_E001, "验证码已经失效，请重新获取");
    	REG_ERR_MAP.put(REG_ERR_E002, "验证码输入错误，请重新输入");
    	REG_ERR_MAP.put(REG_ERR_E003, "注册失败，请重试");
    }
}
